import request from '@/utils/request'

// 查询回答列表列表
export function listAcontent(query) {
  return request({
    url: '/article/acontent/list',
    method: 'get',
    params: query
  })
}

// 查询回答列表详细
export function getAcontent(id) {
  return request({
    url: '/article/acontent/' + id,
    method: 'get'
  })
}

// 新增回答列表
export function addAcontent(data) {
  return request({
    url: '/article/acontent',
    method: 'post',
    data: data
  })
}

// 修改回答列表
export function updateAcontent(data) {
  return request({
    url: '/article/acontent',
    method: 'put',
    data: data
  })
}

// 删除回答列表
export function delAcontent(id) {
  return request({
    url: '/article/acontent/' + id,
    method: 'delete'
  })
}
